'''
 定义： 被定义在()小括号中的数据
 核心区别：
    列表； 可变
    元组：不可变

'''
data_01 =( "nginx","tomcat","php" )
print(type(data_01))

data_02 =(("nginx","1.18"),("docker","25.4"),("k8s","1.29"))
print(type(data_02))

#定义单元素的元组
data_03 = ("test1")
print(type(data_03))
#会误认为是string类型
data_04 = ("test1",)
print(type(data_04))



data_01 = ( "nginx", "tomcat", "php" )
for i in data_01:
    print("yum install -y %s" % i)
print("------------------------" * 4)

data_02 = ( ("nginx", "1.18"), ("docker", "25.4"), ("k8s", "1.29") )

for i, j in data_02:
    print("软件名称: %s, 软件版本: %s" % (i, j))